import java.util.Scanner;

public class MC0431真假美猴王 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.next();
        if (!s.contains("FTF")){
            System.out.println("true monkey");
        }else {
            System.out.println("false monkey");
        }
        input.close();
    }
}
